package com.awifi.dbus.action;

import com.awifi.dbus.model.User;
import com.awifi.dbus.service.IUserService;




/*
 * 注入 IUserService　来处理业务
 */
public class DbusAction {
	private IUserService userService;
	private User user;
	
		
	public IUserService getUserService() {
		return userService;
	}


	//通过此方法 注入 UserService 
	public void setUserService(IUserService userService) {
		this.userService = userService;
	}



	public User getUser() {
		return user;
	}


	public void setUser(User user) {
		this.user = user;
	}



	public void add() {
		userService.add(user);
	}
	
	public void del( int id ) {
		userService.del(id);
	}
	
	public User load( int id ) {
		return null;
	}
}
